<!DOCTYPE html>
<HTML>
<HEAD>
	<TITLE>CMD demo</TITLE>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<script src="lib/sea-debug.js"></script>
	<script>
	  seajs.config({
	  base: '.',
	  // 别名配置
	  alias: {
		"jquery": "lib/jquery/jquery-amd-1.10.2",
		"common": "js/common"
	  },

	  // 调试模式
	  debug: true,

	  // 文件编码
	  charset: 'utf-8'
	});
	seajs.use(['jquery',"js/page"],function($,PAGE){
		$('#button_test').click(function(){
			PAGE.setRadioValue('test_radio_div',1);
		});
	});
	</script>
</HEAD>

<BODY>
<div id="test_radio_div">
	<input type="radio" id="radio1" name="radio" value="1"><span id="radio_label1"></span>
	<input type="radio" id="radio2" name="radio" value="-1"><span id="radio_label2"></span>
</div>
<button id="button_test">设置默认</button>
</BODY>
</HTML>